//
//  HttpManagerCenter+News.h
//  Yihubang
//
//  Created by hyu on 16/7/27.
//  Copyright © 2016年 jinghao. All rights reserved.
//

#import "HttpManagerCenter.h"

@interface HttpManagerCenter (News)
/**
 *  新闻列表
 *
 * 
 *  @param page
 *  @param page_size
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getNewsWithpage:(NSInteger)page pageSize:(NSInteger)pageSize resultClass:(Class)resultClass;

/**
 *  新闻列表
 *
 *
 *  @param news_id
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getNewsWithNewId:(NSString *)news_id resultClass:(Class)resultClass;
/**
 *  新闻评论列表
 *  @param news_id
 *  @param page
 *  @param pageSize
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getNewCommentWithNewId:(NSString *)news_id page:(NSInteger)page pageSize:(NSInteger)pageSize resultClass:(Class)resultClass;
/**
 *  新闻提交评论
 *  @param news_id
 *  @param content
 *  @param uid
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)commentWithNewId:(NSString *)news_id content:(NSString *)content uid:(NSString *)uid resultClass:(Class)resultClass;
/**
 *  获得新闻评论详情
 *  @param comment_id
 *  @param page
 *  @param page_size
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getcommentDetailWithId:(NSString *)comment_id page:(NSInteger)page pageSize:(NSInteger)pageSize resultClass:(Class)resultClass;


/**
 *  删除新闻评论
 *
 *
 *  @param comment_id
 *  @param uid
 *  @param news_id
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)deleteNewsCommentId:(NSString *)comment_id uid:(NSString *)uid newsId:(NSString *)news_id resultClass:(Class)resultClass;


/**
 *  求助列表
 *
 *
 *  @param page
 *  @param page_size
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getHelpsWithpage:(NSInteger)page pageSize:(NSInteger)pageSize ByCondition:(NSString *)condition resultClass:(Class)resultClass;

/**
 *  添加求助
 * @param longitude 求助地址经度
 * @param latitude 求助地址纬度
 * @param address  	求助详细地址
 * @param family_id 家庭成员档案id
 * @param media_type 求助类型(1图片 ，2音频)
 * @param second 语音时长单位秒，(media_type为2时必传)
 * @param media_list 求助图片列表(media_type为2时不传)
 *  @param resultClass 返回数据解析类

 */
- (RACSignal*)addHelp:(NSMutableDictionary *)helpInfo resultClass:(Class)resultClass;

/**
 *  获取求助信息
 *
 
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getHelpInfoByHelpId:(NSString *)help_id resultClass:(Class)resultClass;
/**
 *  收藏求助信息
 *
 
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)collectHelpByHelpId:(NSString *)help_id resultClass:(Class)resultClass;
/**
 *  取消收藏求助信息
 *
 
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)cancalCollectHelpByHelpId:(NSString *)help_id resultClass:(Class)resultClass;

/**
 *  添加线索
 *
 
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)addCule:(NSMutableDictionary *)CuleInfo resultClass:(Class)resultClass;
/**
 *  线索列表
 *
 *
 *  @param page
 *  @param page_size
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getCulesWithpage:(NSInteger)page pageSize:(NSInteger)pageSize resultClass:(Class)resultClass;

/**
 *  获取线索信息
 *
 
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getHelpInfoByClueId:(NSString *)cule_id resultClass:(Class)resultClass;
/**
 *  收藏求助信息
 *
 
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)collectClueByclueId:(NSString *)clue_id resultClass:(Class)resultClass;

/**
 *  取消收藏线索信息
 *
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)cancalCollectClueByClueId:(NSString *)cule_id resultClass:(Class)resultClass;

/**
 *  求助评论
 *
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)commentWithContent:(NSString *)content byHelpId:(NSString *)help_id resultClass:(Class)resultClass;
/**
 *  线索评论
 *
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)commentWithContent:(NSString *)content byClueId:(NSString *)clue_id resultClass:(Class)resultClass;


/**
 *  删除求助评论回复
 *  reply_uid  被回复的uid
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)deleteCommentByUid:(NSString *)uid commentid:(NSString *)comment_id AndHelpId:(NSString *)help_id resultClass:(Class)resultClass;
/**
 *  删除求助评论回复
 *  reply_uid  被回复的uid
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)deleteCommentByUid:(NSString *)uid commentid:(NSString *)comment_id AndClueId:(NSString *)clue_id resultClass:(Class)resultClass;

/**
 *  删除新闻评论回复
 *  reply_uid  被回复的uid
 *  @param resultClass 返回数据解析类
 */


/**
 *  删除线索评论回复
 *  reply_uid  被回复的uid
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)deleteCommentByUid:(NSString *)uid commentid:(NSString *)comment_id AndNewsId:(NSString *)news_id resultClass:(Class)resultClass;

/**
 *  求助评论列表
 *  @param news_id
 *  @param page
 *  @param pageSize
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getHelpCommentWithHelpId:(NSString *)help_id page:(NSInteger)page pageSize:(NSInteger)pageSize resultClass:(Class)resultClass;

/**
 *  线索评论列表
 *  @param news_id
 *  @param page
 *  @param pageSize
 *  @param resultClass 返回数据解析类
 */
- (RACSignal*)getClueCommentWithClueId:(NSString *)clue_id page:(NSInteger)page pageSize:(NSInteger)pageSize resultClass:(Class)resultClass;



@end


